package com.settlement.system.controller;

import com.settlement.system.model.entity.common.TblTmBillDetail;
import com.settlement.system.service.EctBaseService;
import com.settlement.system.service.ITblTmBillDetailService;
import com.settlement.system.common.util.common.FasUtil;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import jakarta.annotation.Resource;
import java.util.Map;

/**
 * 收退款-天猫账单明细 前端控制器
 * @author Ximi
 * @since 2020-06-12
 */

@Api(tags = "天猫-账单明细",description = "天猫-账单明细")
@RestController
@RequestMapping("/tm/bill_detail_export")
public class TblTmBillDetailExportController extends EctExcelController<TblTmBillDetail> {

    @Resource
    private ITblTmBillDetailService tblTmBillDetailExportService;

    @Override
    public EctBaseService initService() {
        return tblTmBillDetailExportService;
    }

    @Override
    protected void setParamsModel(Map<String, Object> model) {
        FasUtil.formatInQueryCondition(model,"shopNo","accountSerialNo","businessSerialNo");
    }
}

